FROM bitnami/kafka:3.3.1
COPY config/* /opt/bitnami/kafka/config/
COPY libs/* /opt/bitnami/kafka/libs/
USER 0
RUN chmod g+rwX /opt/bitnami

EXPOSE 9092
USER 1001
ENTRYPOINT [ "/opt/bitnami/scripts/kafka/entrypoint.sh" ]
CMD [ "/opt/bitnami/scripts/kafka/run.sh" ]